package com.ranjiaqi.homework;

/**
 * @ClassName Car
 * @Description TODO
 * @Author hp
 * @Date 2021/6/23 18:20
 * @Version 1.0
 **/
public class Car {
    private String name;
    private Integer money;

    public Car(String name, Integer money) {
        this.name = name;
        this.money = money;
    }

    public Car() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Car{" +
                "name='" + name + '\'' +
                ", money=" + money +
                '}';
    }
}
